// File Model
import { Model } from "@vuex-orm/core";
export default class File extends Model {
  // This is the name used as module name of the Vuex Store.
  static entity = "files";

  static primaryKey = "id";

  // List of all fields (schema) of the post model. `this.attr` is used
  // for the generic field type. The argument is the default value.
  static fields() {
    return {
      id: this.attr(null),
      fileDirectory: this.string(""),
      fileName: this.string(""),
      fileType: this.string(""),
      fileDownloadUri: this.string(""),
      size: this.number(0),
      privacy_id: this.attr(null)
    };
  }
}
